﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QueryData;

public class 查询标记
{
    void MyMethod()
    {
        using (var db = new BasicDbContext())
        {
            db.BasicEntities.TagWith("Tag1").Where(x => x.Id > 5)
                .TagWith("Tag2").ToList();
        }
    }
}
